package org.example.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

@Data
@TableName("user")
@AllArgsConstructor
@NoArgsConstructor
@Schema(name = "会员类")
public class Member implements Serializable {

    @TableId(value="id")
    @Schema(name = "主键id")
    private Long id;

    private String name;
    private Integer age;

    @TableField(value = "create_time" ,fill = FieldFill.INSERT)
    private Date createTime;
    @TableField(value = "update_time" ,fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;
    @TableField(value = "is_delete" ,fill = FieldFill.INSERT)
    private Integer isDelete;
    @TableField(value = "price" ,fill = FieldFill.INSERT)
    private BigDecimal price;
    // userAge   user_age    userName   user_name
}
